<!--
 * @Author: majianwen
 * @Date: 2021-02-09 20:12:41
 * @LastEditors: majianwen
 * @LastEditTime: 2021-02-09 21:12:59
 * @FilePath: \vue3-vite-app\src\components\HelloWorld.vue
 * @Description: hello组件
-->
<template>
  <h1 :class="$style.title">
    {{ msg }}
  </h1>
  <button @click="count++">count is: {{ count }}</button>
  <p>
    Edit <code>components/HelloWorld.vue</code> to test hot module replacement.
  </p>
</template>

<script>
// TODO:如何将css module形式和 sass同时结合使用
export default {
  name: 'HelloWorld',
  props: {
    msg: String,
  },
  data() {
    return {
      count: 0,
    };
  },
};
</script>
<style module>
.title {
  color: red;
  font-size: 30px;
}
</style>
